package com.flextoolbox.events
{
	import flash.events.Event;
	
	/**
	 * Represents events that are dispatched when the full-size representation
	 * of a thumbnail is opened and closed.
	 * 
	 * @see com.flextoolbox.controls.PopUpThumbnail
	 * @author Josh Tynjala
	 */
	public class PopUpThumbnailEvent extends Event
	{
		
	//----------------------------------
	//  Static Properties
	//----------------------------------
	
		/**
		 * The <code>PopUpThumbnailEvent.POP_UP_OPEN</code> constant defines
		 * the value of the <code>type</code> property of the event object for a
		 * <code>popUpOpen</code> event.
		 */
		public static const POP_UP_OPEN:String = "popUpOpen";
		
		/**
		 * The <code>PopUpThumbnailEvent.POP_UP_CLOSE</code> constant defines
		 * the value of the <code>type</code> property of the event object for a
		 * <code>popUpClose</code> event.
		 */
		public static const POP_UP_CLOSE:String = "popUpClose";
		
	//----------------------------------
	//  Constructor
	//----------------------------------
	
		/**
		 * Constructor.
		 * 
		 *  @param type		The event type; indicates the action that caused the event.
		 */
		public function PopUpThumbnailEvent(type:String)
		{
			super(type, false, false);
		}
		
	//----------------------------------
	//  Public Methods
	//----------------------------------
	
		/**
		 * @private
		 */
		override public function clone():Event
		{
			return new PopUpThumbnailEvent(this.type);
		}
	}
}